package Service;

public class Parameter {
	private Object value;

	private String key;
	
	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	private int type;

	public Parameter(String key, Object value, int type) {
		this.value = value;
		this.type = type;
		this.setKey(key);
	}
	
	public Parameter(String key, Object value) {
		this.value = value;
		this.setKey(key);
	}
	
	public Parameter(Object value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return value.toString();
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getKey() {
		return key;
	}
}